using System.Collections.Generic;
using Newtonsoft.Json;

namespace WebPrinter.Library.DaQu.Result
{
    /// <summary>
    /// 添加打印机结果数据
    /// </summary>
    public class PrinterAddResultData
    {
        /// <summary>
        /// 多台设备发生增加失败时返回原因列表，都成功时返回空列表(注意：增加单时失败的原因在message中)
        /// </summary>
        [JsonProperty("fail")]
        public List<AddFailResult> Fail { get; set; }

        public class AddFailResult
        {
            [JsonProperty("sn")]
            public string Sn { get; set; }
            /// <summary>
            /// 失败原因
            /// </summary>
            [JsonProperty("reason")]
            public string Reason { get; set; }
        }
    }
}